package com.omybug.study.config;

import com.omybug.study.entity.People;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

/**
 * @author: omybug
 * @date: 18/9/18 14:55
 */
@Configuration
@ComponentScan(value = {"com.omybug.study.entity","com.omybug.study.service"})
public class LifeConfig {

//    @Bean(initMethod = "init", destroyMethod = "destory")
//    public Car car(){
//        return new Car();
//    }

    @Bean
    public People people(){
        return new People();
    }
}
